package com.phz.springcloud.study.entity;

import java.util.Date;

import javax.validation.constraints.NotBlank;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import lombok.Data;
/**
 * 余额表
 * @author penghaozhong
 *
 */
@Document(collection = "cloud-balance")
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class Balance {
	
	
	//用户
	@Id
	private String phone;
	private String username;
	private double balance;
	private String balanceCurrency;
	private double lcsuoBalance;
	private String lcsuoBalanceCurrency;
	private Integer totalTransactionCount;
	private double totalTransactionAmount;
	private String totalTransactionCurrency;
	private Integer totalIncomeCount;
	private double totalIncomeAmount;
	private String totalIncomeCurrency;
	private Integer totalExpenseCount;
	private double totalExpenseAmount;
	private String totalExpenseCurrency;
	private Integer totalTopupCount;
	private double totalTopupAmount;
	private String totalTopupCurrency;
	private double totalCommissionAmount;
	private String totalCommissionCurrency;
	private Date updateTime;
	private String updator;
	@NotBlank
	private Date createTime;

}
